import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  // 首页
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  // 暂时为空
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  // 歌单详情页
  {
    path: '/listview',
    name: 'listview',
    component: () => import(/* webpackChunkName: "about" */ '../views/ListView.vue')
  },
  // 我的
  {
    path: '/mine',
    name: 'mine',
    component: () => import(/* webpackChunkName: "about" */ '../views/mine.vue')
  },
  // 云村
  {
    path: '/yuncun',
    name: 'yuncun',
    component: () => import(/* webpackChunkName: "about" */ '../views/yuncun.vue')
  },
  // 视频
  {
    path: '/video',
    name: 'video',
    component: () => import(/* webpackChunkName: "about" */ '../views/video.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
